package com.caac.core.web.form;

import java.util.Date;

import com.caac.core.util.DateUtils;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright 2004</p>
 * <p>Company: </p>
 * @author <a href="mailto:lianzs@caac.com.cn">lianzs</a>
 * @version 1.0
 */

public class SysLogSearchForm extends BaseSearchForm {
    private String id;
    private String username;
    private String ipAddress;
    private Date operateTime1;
    private Date operateTime2;
    private String operateTime1String;
    private String operateTime2String;
    private String operateUrl;
    private String operateDesc;
    private String result;
    private String notes;
    private String sysNo;

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIpAddress() {
        return this.ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public Date getOperateTime1() {
        return this.operateTime1;
    }

    public Date getOperateTime2() {
        return this.operateTime2;
    }

    public String getOperateTime1String() {
        return this.operateTime1String;
    }

    public void setOperateTime1String(String operateTime1String) {
        this.operateTime1String = operateTime1String;
        try {
            this.operateTime1 = DateUtils.convertToDate(DateUtils.
                    PATTERN_DATETIME, operateTime1String + " 00:00:00");
        } catch (Exception e) {
            this.operateTime1 = null;
        }
    }

    public String getOperateTime2String() {
        return this.operateTime2String;
    }

    public void setOperateTime2String(String operateTime2String) {
        this.operateTime2String = operateTime2String;
        try {
            this.operateTime2 = DateUtils.convertToDate(DateUtils.
                    PATTERN_DATETIME, operateTime2String + " 23:59:59");
        } catch (Exception e) {
            this.operateTime2 = null;
        }
    }

    public String getOperateUrl() {
        return this.operateUrl;
    }

    public void setOperateUrl(String operateUrl) {
        this.operateUrl = operateUrl;
    }

    public String getOperateDesc() {
        return this.operateDesc;
    }

    public void setOperateDesc(String operateDesc) {
        this.operateDesc = operateDesc;
    }

    public String getResult() {

        return result;
    }

    public void setResult(String result) {

        this.result = result;
    }

    public String getNotes() {

        return notes;
    }

    public void setNotes(String notes) {

        this.notes = notes;
    }

	public String getSysNo() {
		return sysNo;
	}

	public void setSysNo(String sysNo) {
		this.sysNo = sysNo;
	}
}
